package pet3;

public class Petstore {
        public static Pet get(int type){
        	switch(type){
        	case 1:
        		return new Dog();
        	case 2:
				return new Penguin();
			default:
				return null;     			
      	}
   }
}

